﻿using Microsoft.EntityFrameworkCore;
using TMS_BackEnd.Models.He;
using TMS_BackEnd.Models.SH;

namespace TMS_BackEnd.MyDbContexts
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.ApplyConfigurationsFromAssembly(this.GetType().Assembly);
        }

        public DbSet<Sys_user> Sys_users { get; set; }

        public DbSet<sys_menu> Sys_menus { get; set; }
        public DbSet<sys_role> Sys_roles { get; set; }
        public DbSet<sys_role_menu> sys_role_menus { get; set; }

    }
}
